
[dual_carriage]                             # Definition for the secondary carriage
axis: x
step_pin:                       PB16        # E2 step
dir_pin:                        PB15        # E2 dir
enable_pin:                     !PC19       # E2 enable
microsteps:                     256
#step_distance:                  0.0125
rotation_distance:              19.25
full_steps_per_rotation:        200         # for 0.9° motors - 400
endstop_pin:                    tmc2130_dual_carriage:virtual_endstop   #^!PD9      # X-MAX - PD9; X-MIN - PB26
position_endstop:               416
position_min:                   20
position_max:                   416
homing_speed:                   50
homing_retract_dist:            0           # 5
#second_homing_speed:            20

[tmc2130 dual_carriage]
cs_pin:                         PA2
#spi_speed:                      100000
#spi_bus:                        spi0
interpolate:                    False
run_current:                    0.85        # Imax * squart(2) * 80%
hold_current:                   0.425       # ~~ run_current/2
sense_resistor:                 0.110
stealthchop_threshold:          999999
#driver_IHOLDDELAY: 8
#driver_TPOWERDOWN: 0
#driver_TBL: 1
#driver_TOFF: 4
#driver_HEND: 7
#driver_HSTRT: 0
#driver_PWM_AUTOSCALE: True
#driver_PWM_FREQ: 1
#driver_PWM_GRAD: 4
#driver_PWM_AMPL: 128
driver_SGT:                     7           # MAX = -2; MIN = 11
#diag0_pin:
diag1_pin:                      ^!PD9

